/**
 * author:Administrator
 * date:2016/1/4
 * desc:TODO
 */
'use strict';

var mongoose = require('../conn/mongoose.js');

var modelName='_test_couponVendor';
var model = new mongoose.Schema({
  cvid:{type:Number,default:0,index:true},  /* coupon vid */
  qtyTotal: Number,                         /* 总发行量 */
  qtyLeft: Number,                          /* 剩余量，>0时可领取，=0时表示领取完了 */
  pendingTransactions:[],                   /* 所处事务 */
});

module.exports = mongoose.model(modelName, model);